package com.vooda.business_admin.controller.user;


import com.vooda.business_admin.common.ReqDataTableDto;
import com.vooda.business_admin.common.RspDataTableDto;
import com.vooda.business_admin.entity.SysUser;
import com.vooda.business_admin.entity.User;
import com.vooda.business_admin.service.SysUserService;
import com.vooda.business_admin.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import javax.servlet.http.HttpServletRequest;


@RestController
@RequestMapping(value = "/user")
public class UserController {

    @Autowired
    UserService userService;


    @GetMapping("/getAllList")
    public RspDataTableDto<User> findManagerList(ReqDataTableDto reqDataTableDTO) {
        return userService.findUserList(reqDataTableDTO);
    }

}
